import { get, post } from "./http"

//注册
export const reqRegister = params => post("/api/register", params)
//登录
export const reqLogin = params => post("/api/login", params)


//新人专享
export const reqGetNew=()=>get("/api/getnew")
//万人团
export const reqGetgroupon=()=>get("/api/getgroupon")
//秒杀
export const reqGetSeckill=()=>get("/api/getseckill")
//倒计时
export const reqGetcountdown=()=>get("/api/getcountdown")
//商品信息首页
export const reqGetindexgoods=()=>get("/api/getindexgoods")
//获取商品分类
export const reqGetcate=()=>get("/api/getcate")
//获取分类商品
export const reqGetgoods=(params)=>get("/api/getgoods",params)
//首页优惠卷
export const reqGetcoupon=()=>get("/api/getcoupon")
//轮播图（我的）
export const reqBanner=()=>get("/api/getbanner")

//购物车列表
export const reqCartlist=(params)=>get("/api/cartlist",params)
//购物车添加
export const reqCartadd=(params)=>post("/api/cartadd",params)
//购物车删除
export const reqCartdelete=(params)=>post("/api/cartdelete",params)